package com.serene.authority.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.serene.authority.admin.entity.MyRoleMenu;

/**
 * @author serence
 * @date 2021/5/8 20:46
 */
public interface RoleMenuService extends IService<MyRoleMenu> {

    /**
     * 根据角色id删除角色菜单
     *
     * @param roleId 角色id
     * @return
     */
    public Integer deleteRoleMenuByRoleId(Integer roleId);

    /**
     * 通过role_id计算权限数量
     *
     * @param menuId 菜单id
     * @return
     */
    public Integer queryRoleMenuCountByMenuId(Integer menuId);
}
